import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { HashRouter } from 'react-router-dom'
// 可以引入HashRouter或BrowserRouter
const root = ReactDOM.createRoot(document.getElementById('root'));
// 包裹App组件
root.render(
<HashRouter>
<App />
</HashRouter>
);
